﻿///-----------------------------------------------------------------------
/// <copyright file="LiquidationListViewViewModel.cs" company="FactSet Research Systems, Inc.">
///     Copyright © FactSet Research Systems, Inc.  All rights reserved 2012.
/// </copyright>
/// <author>Jonathan K. Barez</author>
///-----------------------------------------------------------------------
namespace HousholdISv2.ViewModel.Transaction
{
    using System.Collections.Generic;
    using DataRepository;
    using MVVMCore;
    using MVVMCore.ViewModel.Details;

    public class LiquidationListViewViewModel : ListViewViewModel<LiquidationListViewItemViewModel, Expense>
    {
        #region Methods

        public void AddRange(IEnumerable<Expense> items)
        {
            items.ForEach(item => this.Add(item));
        }

        public LiquidationListViewItemViewModel Add(Expense expense)
        {
            var newItem = new LiquidationListViewItemViewModel(this, expense);
            Add(newItem);
            return newItem;
        }

        #endregion Methods
    }
}
